package com.cgsd.heyu.ui.task;

import android.os.Bundle;

import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

import com.cgsd.heyu.R;
import com.cgsd.heyu.ui.BaseFragment;
import com.cgsd.heyu.ui.task.adapter.YetCheckAdapter;

import java.util.ArrayList;
import java.util.List;

/**
 * Author: sky on 2021/3/8 11:48
 * Email: xcode126@126.com
 * Desc: 我的发布-任务详情-已审核
 */
public class YetCheckFragment extends BaseFragment {

    private YetCheckAdapter checkAdapter;

    public static YetCheckFragment newInstance() {
        Bundle args = new Bundle();
        YetCheckFragment fragment = new YetCheckFragment();
        fragment.setArguments(args);
        return fragment;
    }

    @Override
    protected int getLayoutResId() {
        return R.layout.common_recycler;
    }

    @Override
    protected void initView() {
        RecyclerView mRecyclerView = findViewById(R.id.mRecyclerView);
        mRecyclerView.setLayoutManager(new LinearLayoutManager(mContext));
        checkAdapter = new YetCheckAdapter();
        mRecyclerView.setAdapter(checkAdapter);
    }

    @Override
    protected void initData() {
        List<String> list = new ArrayList<>();
        list.add("");
        list.add("");
        list.add("");
        list.add("");
        list.add("");
        checkAdapter.setNewData(list);
    }
}
